﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.ArticleViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf - Greinar > <%: Model.category.Category1 %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Greinar í flokk: <%:Model.category.Category1 %></h1>
       <% foreach (var item in Model.articles)
          { %> 
            <div class="frettaListi">
                <h2><%: Html.ActionLink(item.Title, "SynaGrein", new { id = item.ID })%></h1>
                <p>Grein bætt inn af <%: item.FullName %> - þann <%: item.Date %></p>
               <!-- <p>Grein bætt in af <%: Html.ActionLink(item.InserterID, "MittSvaedi", new{id = item.ID}) %> - þann <%: item.Date %></p>-->
            </div>
       <%} %>


</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Actions" runat="server">
    <% Html.RenderPartial("PartialViews/Actions", "Grein"); %>
</asp:Content>
